<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="Generator" content="68ECSHOP v4_2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="Keywords" content=""/>
    <meta name="Description" content=""/>
    <title>已买到的宝贝</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/home/68ecshop_common.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/home/user.css"/>
    <script src="__JQ__" type="text/javascript" charset="utf-8"></script>
    <script src="__JS__/home/common.min.js" type="text/javascript" charset="utf-8"></script>
    <!--			layer-->
    <script type="text/javascript" src="__JS__/jquery.form.js"></script>
    <script type="text/javascript" src="__JS__/tips/toastr.min.js"></script>
    <script type="text/javascript" src="__JS__/layer/layer.js"></script>
    <script type="text/javascript" src="__JS__/jquery.layer.js"></script>
    <!--			layer-->
</head>
<body>
<include file="Public/head_a" />
<include file="Public/head_b" />
<include file="Public/head_c" />
<div class="margin-w1210 clearfix">
    <!--S用户中心公共左边-->
    <include file="Public/user_left"/>
    <!--E用户中心公共左边-->
    <div class="user-right">

        <div class="box" style="margin-left: 10px; width: 989px;">
            <div class="tabmenu">
                <ul class="tab">
                    <li class="active" style="width: 950px;text-align: left;"><a href="#">我的订单</a></li>
                </ul>
            </div>
            <div id="J_Remide" class="remide-box">
                <h3>我的交易提醒：</h3>
                <ul>
                    <li><a href="{:U('Order/index')}">全部订单<span class="num">({$all})</span></a></li>
                    <li><a href="{:U('Order/waitPay')}">未付款<span class="num">({$waitPay})</span></a></li>
                    <li><a href="{:U('Order/waitSend')}">待发货<span class="num">({$waitSend})</span></a></li>
                    <li><a href="{:U('Order/waitConfirm')}">已发货<span class="num">({$waitConfirm})</span></a></li>
                    <li><a href="{:U('Order/waitRate')}" style="color: #FF2626;">已完成<span class="num">({$waitRate})</span></a></li>
                </ul>
            </div>
            <div class="extra-r" style="display:none">
                <div class="search-01">
                    <input id="ip_keyword" name="" class="s-itxt" value="商品名称、商品编号、订单编号"
                           onfocus="if (this.value==this.defaultValue) this.value=''"
                           onblur="if (this.value=='') this.value=this.defaultValue"
                           onkeydown="javascript:if(event.keyCode==13) OrderSearch('ip_keyword');" type="text">

                    <a href="javascript:;" class="btn-13" onclick="OrderSearch('ip_keyword')"
                       clstag="click|keycount|orderinfo|search">查 询</a></div>
                <div class="blank"></div>
            </div>

            <form name="myform" id="myform" action="" method="post">
                
             <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table">
                <thead>
                <tr class="col-name">
                    <th width="33%" style="border-left: 1px solid #E6E6E6;">宝贝</th>
                    <th width="10%">属性</th>
                    <th width="8%">单价(元)</th>
                    <th width="9%">数量</th>
                    <th width="8%">订单总金额</th>
                    <th width="16%">状态</th>
                    <th width="16%" style="border-right: 1px solid #E6E6E6;">操作</th>
                </tr>
                </thead>
             </table>
            <foreach item="m" name="arrOrder">
            <div style="height: 15px; width: 100%;"></div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table">
                <thead>
                <tr class="col-name">
                    <th width="32%" style="text-align: left;" colspan="2">&nbsp;&nbsp;{$v['add_time']|date="Y-m-d H:i:s",###} 订单编号：{$m['order_sn']}</th>
                    <th width="10%">{$m['store_name']}</th>
                    <th width="9%" colspan="2"></th>
                    <th width="13%" style="border-right: 1px solid #E6E6E6;" colspan="2"></th>
                </tr>
                </thead>
                <tbody class="close-order">
                <foreach name="m['OrderGoods']" item="v" key="k">
                    <tr class="order-bd last">
                        <td width="33%" align="center" rowspan="1" colspan="1" class="baobei no-border-right order_goods_info">
                            <div class="goods_desc last" style="height: 60px;">
                                <a class="pic" href="{:HOME_URL}/Goods/{$v['goods_id']}" title="{$v['goods_title']}" target="_blank"><img src="{$v['goods_image']}" alt="查看宝贝详情" width="50" height="50"></a>
                                <div class="goods_name"><a href="{:HOME_URL}/Goods/{$m['goods_id']}" title="{$v1['goods_title']}" target="_blank">{$v['goods_title']}</a></div>
                            </div>
                        </td>
                        <td rowspan="1" width="10%" align="center" class="baobei no-border-right order_goods_attr">{$v['goods_attri_info']}</td>
                        <td rowspan="1" width="8%" align="center" class="baobei no-border-right order_goods_info" style="padding:0px;">￥{$v['goods_price']}</td>
                        <td rowspan="1" width="9%" align="center" class="baobei no-border-right order_goods_info" style="padding:0px;">{$v['goods_num']}</td>
                        <td rowspan="1" width="8%" align="center" class="amount no-border-right"><p class="post-type"><strong>￥{$v['goods_price']}</strong></p></td>
                        <if condition="$k eq 0">
                            <td width="16%" align="center" class="amount no-border-right">已完成</td>
                            <td width="16%" align="center" class="trade-status">
                                <if condition="($m['evaluation_state'] eq 0)">
                                    <a class="on_money_class" href="{:U('Comment/index',array('order_id'=>$m['order_id']))}" data="{$m.order_sn}" title="我要评价">我要评价</a>
                                    <else/>
                                    已评价
                                </if>
                                <br><a class="on_money_class" href="{:U('Order/express',array('key'=>$m['order_id']))}"><i class="icon-minus-circle"></i>查看物流</a>
                            </td>
                        </if>
                    </tr>
                </foreach>
                    </tbody>
            </table>
            </foreach>
            </form>
            
            <div class="page">{$page}</div>
            <script type="text/javascript">
                $(function () {
                    $('.order_goods_info').find('.goods_desc').each(function () {
                        $(this).css('height', $(this).parents('.order_goods_info').siblings('.order_goods_attr').find('.goods_desc').eq($(this).index()).height());
                    });
                })
            </script>
        </div>


    </div>
</div>
<div class="pop-mask"></div>
<div class="site-footer">
    <div class="footer-related">
        <include file="Public/bootom_a" />
        <include file="Public/bootom_b" />
        <include file="Public/bootom_c" />
    </div>
</div>
<a href="#" class="big-link" data-reveal-id="myModal" data-animation="fade"></a>
</body>

</html>
<!--layer-->
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "{:U('/Order/del')}",
    });
</script>
